package org.helgoboss.hotkey_listener

case class ModifierCombination(val modifiers: Set[Modifier]) {    
    def +(additionalModifier: Modifier) = ModifierCombination(modifiers + additionalModifier)
    def +(key: Key) = Hotkey(this, key)
    def jIntellitypeRepresentation = modifiers.map(_.jIntellitypeMask).sum
}